CyberStore Inventory Web Service
MethodGetSearchResults
CyberStore Inventory Web Service > All Operations Resource Group : GetSearchResults (Method)
Request (GetSearchResultsSoapIn)

The request body is of type GetSearchResults.

Request Body Parameters

NameDescriptionData Type
 xml:string
 xml:string
 xml:boolean
 xml:boolean
 xml:boolean
 xml:boolean
Example
The following example shows how to perform the web operation in CyberStore.
// Example: Search for Items 
//      using the search term 'bike'
//      in the top level Category 
//      and any children categories down the category hierarchy
//      and 
//          are Models, or 
//          are Stock Codes, or 
//          are SKUs 
// then send the response to the browser console

MakeAJAXCall("Inventory.GetSearchResults", {
    SearchString: 'bike',
    SearchCategoryID: -1,
    IncludeItemsFromAllChildCategories: true,
    IncludeModels: true,
    IncludeStockCodes: true,
    IncludeSKUs: true
}, console.log);
200 Response (GetSearchResultsSoapOut)

The response body is of type GetSearchResultsResponse.

Response Body Parameters

NameDescriptionData Type

A string value containing a JSON object.

[{
    "Item_ID": 614,
    "RANK": 80,
    "StockCode": "A201",
    "Name": "Bicycle Chain and Lock",
    "Headline": "Heavy Duty Lock ",
    "SubHeadline": "Protect your bike! ",
    "ShortDescription": "Heavy-duty solid-steel construction ",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 0,
    "LongDescription2": "Distrib./Alternate Supplier",
    "ITM_Item.SortOrder": 0,
    "CanAddToCart": true
}, {
    "Item_ID": 605,
    "RANK": 64,
    "StockCode": "A130",
    "Name": "18 Speed Racing Bike Boys",
    "Headline": "Racing Bike",
    "SubHeadline": "18 Speed - Boys",
    "ShortDescription": "Cruise the neighborhood on this stylish, 18-speed comfort bike.",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 10,
    "LongDescription2": "Distribution/Goods in Transit",
    "ITM_Item.SortOrder": 4,
    "CanAddToCart": false
}, {
    "Item_ID": 608,
    "RANK": 64,
    "StockCode": "A133",
    "Name": "18 Speed Racing Bike Men",
    "Headline": "Racing Bike",
    "SubHeadline": "18 Speed - Men",
    "ShortDescription": "Cruise the neighborhood on this stylish, 18-speed comfort bike.",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 4,
    "LongDescription2": "Distribution/Goods in Transit",
    "ITM_Item.SortOrder": 2,
    "CanAddToCart": true
}, {
    "Item_ID": 579,
    "RANK": 48,
    "StockCode": "A100",
    "Name": "Boys 15 Speed Mountain Bike",
    "Headline": "Mountain Bike",
    "SubHeadline": "",
    "ShortDescription": "",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 10,
    "LongDescription2": "Distribution",
    "ITM_Item.SortOrder": 0,
    "CanAddToCart": true
}, {
    "Item_ID": 581,
    "RANK": 48,
    "StockCode": "A102",
    "Name": "15\u0027 Speed Mountain Bike Ladies",
    "Headline": "Mountain Bike",
    "SubHeadline": "",
    "ShortDescription": "",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 8,
    "LongDescription2": "Distribution",
    "ITM_Item.SortOrder": 2,
    "CanAddToCart": true
}, {
    "Item_ID": 590,
    "RANK": 48,
    "StockCode": "A103",
    "Name": "15 Speed Mountain Bike Men",
    "Headline": "Mountain Bike",
    "SubHeadline": "",
    "ShortDescription": "",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 16,
    "LongDescription2": "Distribution",
    "ITM_Item.SortOrder": 1,
    "CanAddToCart": true
}, {
    "Item_ID": 591,
    "RANK": 48,
    "StockCode": "A110",
    "Name": "18 Speed Mountain Bike Boys",
    "Headline": "Mountain Bike",
    "SubHeadline": "",
    "ShortDescription": "",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 14,
    "LongDescription2": "Distribution/Kit Component",
    "ITM_Item.SortOrder": 7,
    "CanAddToCart": true
}, {
    "Item_ID": 592,
    "RANK": 48,
    "StockCode": "A111",
    "Name": "18 Speed Mountain Bike Girls",
    "Headline": "Mountain Bike",
    "SubHeadline": "",
    "ShortDescription": "",
    "Link1": "",
    "Model_ID": 0,
    "SortOrder": 12,
    "LongDescription2": "Distribution",
    "ITM_Item.SortOrder": 4,
    "CanAddToCart": true
}]
xml:string
See Also
All Operations Resource GroupCyberStore Inventory Web Service